﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HU8.Web.FileExplorer.FileExplorer.Config
{
    public class ProtectedPath
    {
        public string Roles { get; set; }
        public string RelativePath { get; set; }
        public bool AllowRead { get; set; }
        public bool AllowWrite { get; set; }
        public bool AllowDelete { get; set; }

        public List<string> OverrideRoles
        {
            get
            {
                return Roles.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).ToList();
            }
        }
    }
}